#include "main.h"

#include "App_Task.h"
#include "Driver_LPTIM16.h"
#include "Inf_FourwayKey.h"
#include "Inf_SolenoidValve.h"
#include "mf_config.h"

int main(void)
{
#ifdef DEBUG
    SEGGER_RTT_Init();
    LOG("HT project start success!\n");
#endif

    /* 时钟配置 主频64MHz */
    MF_Clock_Init();

    /* 启动FreeRTOS */
    App_Task_StartFreeRTOS();

    // Inf_SolenoidValve_Init();
    // Inf_SolenoidValve_EnableSwitch();

    // uint8_t flankIndexList[] = { SOLENOID_VALVE_INDEX_YT5, SOLENOID_VALVE_INDEX_YTR5 };

    // uint8_t flankIndexListSize = sizeof(flankIndexList) / sizeof(uint8_t);

    // Inf_SolenoidValve_ActivateMultiValves(flankIndexList, flankIndexListSize);
    while (1) {}
}
